﻿[[title="项目报告",pagesize="20",orderby="commitDate desc",condition=""]]
<script language="javascript" type="text/javascript">
    function changeWindowSize() {
        wmsCommon.setListDivStyle("listDiv", 1);
    }
    $(function () {
        wmsCommon.setListDivStyle("listDiv", 1);
        projectQuestionAlerm();
    });

    //项目报告报警
    function projectQuestionAlerm() {

        var repotGUIDData = eval(wmsCommon.execCommand(String.format("sys(#ProjectQuestionManager.ProjectQuestionAlerm('{0}'))", "$request.QueryString.get('projectGUID')")));
        for (var i = 0; i < $(".rG").length; i++) {
            for (var j = 0; j < repotGUIDData.length; j++) {
                if ($($(".rG")[i]).val() == repotGUIDData[j]["repotGUID"]) {
                    $($(".rG")[i]).parent().parent().css("background-color", "#ffae31");
                }
            }
        }

    }

</script>
<table class="listMainTable" height="100%" cellpadding="0" cellspacing="0">
    <tr>
        <td style="height: 40px">
            <table cellspacing="0" cellpadding="0" class="tblSearchParent">
                <tr>
                    <td class="TblSearchPanel_01">
                    </td>
                    <td class="TblSearchPanel_02">
                        <div class="DivSearchTitle" style="float: left;">
                            查询条件</div>
                        <img alt="点此隐藏或显示搜索区域" id="Image2" src="res/images/display.gif" class="ImgSearch"
                            onclick="wmsCommon.searchContentCtr()" />
                    </td>
                    <td class="TblSearchPanel_03">
                    </td>
                </tr>
                <tr>
                    <td class="TblSearchPanel_04">
                    </td>
                    <td>
                        <!-- search content start -->
                        <table id="tblSearch" class="SearchTable">
                            <tr>
                                <td style="text-align: left; width: 100%;">
                                    <table style="width: auto;">
                                        <tr>
                                            <td class="tdright">
                                                <nobr>
                                                $projectQuestion.Columns.get_Item("commitDate").DisplayName()：
                                                </nobr>
                                            </td>
                                            <td class="tdleft">
                                                $projectQuestion.Columns.get_Item("commitDate").RenderAsQuery()
                                            </td>
                                            <td class="tdright">
                                                <nobr>
                                                $projectQuestion.Columns.get_Item("cteateNo").DisplayName()：
                                                </nobr>
                                            </td>
                                            <td class="tdleft">
                                                $projectQuestion.Columns.get_Item("cteateNo").RenderAsQuery()
                                            </td>
                                            <td class="tdright">
                                                <nobr>
                                                $projectQuestion.Columns.get_Item("projectPerson").DisplayName()：
                                                </nobr>
                                            </td>
                                            <td class="tdleft">
                                                $projectQuestion.Columns.get_Item("projectPerson").RenderAsQuery()
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdright">
                                                <nobr>
                                                $projectQuestion.Columns.get_Item("mscrm").DisplayName()：
                                                </nobr>
                                            </td>
                                            <td class="tdleft">
                                                $projectQuestion.Columns.get_Item("mscrm").RenderAsQuery()
                                            </td>
                                            <td class="tdright">
                                                <nobr>

                                                </nobr>
                                            </td>
                                            <td class="tdleft">
                                            </td>
                                            <td class="tdright">
                                                <nobr>

                                                </nobr>
                                            </td>
                                            <td class="tdleft">
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td style="vertical-align: bottom;">
                                    <div style="width: 100%;">
                                        $render.RenderButton()
                                    </div>
                                </td>
                            </tr>
                        </table>
                        <!-- search content end-->
                    </td>
                    <td class="TblSearchPanel_06">
                    </td>
                </tr>
                <tr>
                    <td class="TblSearchPanel_07">
                    </td>
                    <td class="TblSearchPanel_08">
                    </td>
                    <td class="TblSearchPanel_09">
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td style="height: 20px;">
            <!--button content start-->
            <table class="controlContent" cellpadding="0" cellspacing="0">
                <tr class="rowEven">
                    <td style="text-align: right;">
                        $render.RenderButton(" text=新增; displayType=button; actionType=btnadd; clientMethod=wmsCommon.openAddWin('projectQuestion','projectQuestion_edit','800','600','projectGUID=$request.QueryString.get('projectGUID')');")
                        $render.RenderButton(" text=删除; displayType=button ; actionType=delete; clientMethod=wmsCommon.deleteRecords('contenttb','projectQuestion');")
                    </td>
                </tr>
            </table>
            <!--button content end-->
        </td>
    </tr>
    <!--list content start-->
    <tr>
        <td style="vertical-align: text-top;" id="listTd" onresize="changeWindowSize()">
            <div id="listDiv" class="listDivStyle">
                <table id="contenttb" cellpadding="0" cellspacing="0" class="tblList">
                    <tr class="FixedTitleRow">
                        <th style="width: 30px">
                            <span style="cursor: hand" onclick="wmsCommon.checkedAll('contenttb')">选择</span>
                        </th>
                        <th style="width: 20px">
                            $projectQuestion.Columns.get_Item("ROWNUM").Render()
                        </th>
                        <th>
                            $projectQuestion.Columns.get_Item("projectReportCycle").Render()
                        </th>
                      
                        <th>
                            $projectQuestion.Columns.get_Item("projectPerson").Render()
                        </th>
                        <th>
                            $projectQuestion.Columns.get_Item("mscrmName").Render()
                        </th>

                        <th>
                            $projectQuestion.Columns.get_Item("createName").Render()
                        </th>
                        <th style="width: 120px;">
                            操作
                        </th>
                    </tr>
                    #foreach($row in $projectQuestion.Rows)
                    <tr keyvalue="$row.RenderKeyValue()" >
                        <td style="width: 30px">
                            <input style="cursor: hand; border: 0" type="checkbox" />
                        </td>
                        <td style="width: 20px">
                            $row.get_Item("ROWNUM").Render()
                            <input type=hidden value="$row.get_Item('repotGuid')" class="rG" />
                        </td>
                        <td style="text-align: center">
                            <nobr>
                            <a href="#" style="border: 0" onclick="wmsCommon.openLookWin('$row.RenderKeyValue()','projectQuestion','projectQuestion_View','','','&repotGuid=$row.get_Item('repotGuid').Render()')"> 
                                $row.get_Item("projectReportCycle").Render()&nbsp;至&nbsp;$row.get_Item("reportCycleEnd").Render()</a>
                                </nobr>
                        </td>
                        
                        <td style="text-align: center">
                            <nobr>
                            $row.get_Item("projectPersonName").Render()
                                </nobr>
                        </td>
                        <td style="text-align:center">
                            <nobr>
                            $row.get_Item("mscrmName").Render()
                                </nobr>
                        </td>
                        <td style="text-align: center">
                            <nobr>
                            $row.get_Item("createName").Render()
                               </nobr>
                        </td>
                        <td style="width: 120px; text-align: center">
                            <nobr>
                            $render.RenderButton("text=修改;displayType=button;actionType=modify;clientMethod=wmsCommon.openModifyWinWithEvent1(this.parentNode, 'projectQuestion','projectQuestion_edit',900,600,'','','projectGUID=$row.get_Item('projectGUID').Render()');")
                              </nobr>
                        </td>
                    </tr>
                    #end
                </table>
            </div>
        </td>
    </tr>
    <!-- list content end-->
    <tr>
        <td style="height: 20px; vertical-align: text-bottom">
            <div style="height: 20px; background-color: rgb(233, 231, 215); text-align: center;
                vertical-align: bottom">
                $render.RenderPaging($projectQuestion)
            </div>
        </td>
    </tr>
</table>
